function columns(vm) {
    const cols = [
        {
            title: '序号',
            dataIndex: '',
            key: 'rowIndex',
            width: 60,
            align: 'center',
            customRender: function (t, r, index) {
                return parseInt(index) + 1
            }
        },
        {
            title: '名称',
            align: 'center',
            dataIndex: 'name',
            key: 'name'
        },
        {
            title:'性别',
            align:'center',
            dataIndex:'sex',
            key:'sex'
        },
        {
            title:'学历',
            align:'center',
            dataIndex:'education',
            key:'education'
        },
        {
            title: '所属单位',
            align: 'center',
            dataIndex: 'unitName',
            key: 'unitName'
        },
        {
            title:'职务',
            align:'center',
            dataIndex:'position',
            key:'position'
        },
        {
            title:'邮箱',
            align:'center',
            dataIndex:'email',
            key:'email'
        },
        {
            title: '技术职称',
            align: 'center',
            dataIndex: 'titleStructure',
            key: 'titleStructure'
        },
        {
            title: '联系方式',
            align: 'center',
            dataIndex: 'phone',
            key: 'phone'
        },
        {
            dataIndex: 'action',
            align: 'center',
            slots: { title: 'actionName' },
            scopedSlots: { customRender: 'action' }
        }
    ]
    return cols
}

export default columns